package com.softa.enummodel;

/**
 * Created by yangl on 2017/8/16.
 */
public enum OrderEnum {
    BUY("购买订单"),TRY("试用订单");
    private String value;

    private OrderEnum(String value){
        this.value = value;
    }

    public static OrderEnum valueOf(Integer type){
        OrderEnum orderEnum = null;
        switch (type){
            case 0 :orderEnum = OrderEnum.BUY; break;
            case 1 :orderEnum = OrderEnum.TRY; break;
        }
        return orderEnum;
    }
}
